import request from '@/utils/request'

export function addPatient(data) {
  return request({
    url: '/patients/create',
    method: 'post',
    data
  })
}

export function getAllPatients(data) {
  return request({
    url: '/patients/list',
    method: 'get',
    params: data
  })
}

export function getPatientDetail(data) {
  return request({
    url: '/patients/detail',
    method: 'get',
    params: data
  })
}

export function verifyPatient(data) {
  return request({
    url: '/patients/verify',
    method: 'post',
    data
  })
}
